<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
<div class="xm_um">
<?php if($_G['uid']) { ?>
  <div id="um">
        <div href="home.php?mod=space&amp;uid=<?php echo $_G['uid'];?>" class="xm_avt">
            <a href="home.php?mod=space&amp;uid=<?php echo $_G['uid'];?>" class="xm_ur">
                <?php echo avatar($_G[uid],small);?>                <?php echo $_G['member']['username'];?>
            </a>
<?php if(getuserprofile('verify1') == 1) { ?>
<!--<span class="xm_avt_veri">-->
                <a href="http://uvip.xiaomi.cn" target="_blank">
                    <img src="<?php echo $_G['setting']['verify']['1']['icon'];?>" class="vm" alt="<?php echo $_G['setting']['verify']['1']['title'];?>" title="<?php echo $_G['setting']['verify']['1']['title'];?>" />&nbsp;
                </a>
<!--</span>-->
            <?php } ?>
<i></i>
        </div>

        <?php if(0) { ?><a href="member.php?mod=logging&amp;action=logout&amp;formhash=<?php echo FORMHASH;?>" class="logout">退出</a><?php } ?>
        <a href="home.php?mod=space&amp;do=pm" id="pm_ntc" class="msg<?php if($_G['member']['newpm']) { ?> newmsg<?php } ?>" alt="消息"><?php if($_G['member']['newpm']) { ?><em><?php echo $_G['member']['newpm'];?></em><?php } ?></a>

        <div class="xm_um_ex_info">
            <ul class="base_info">
                <li>
                	<?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra1'])) echo $_G['setting']['pluginhooks']['global_usernav_extra1'];?>
                	<?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra2'])) echo $_G['setting']['pluginhooks']['global_usernav_extra2'];?>
                    <?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra3'])) echo $_G['setting']['pluginhooks']['global_usernav_extra3'];?>
                    <a href="home.php?mod=spacecp&amp;ac=credit&amp;showcredit=1" id="extcreditmenu"<?php if(!$_G['setting']['bbclosed']) { ?> onmouseover="/*delayShow(this, showCreditmenu);*/"<?php } ?>>积分: <?php echo $_G['member']['credits'];?></a>
                </li>
                <li>
                    <a href="home.php?mod=spacecp&amp;ac=usergroup" id="g_upmine" onmouseover="/*delayShow(this, showUpgradeinfo)*/">用户组: <?php echo $_G['group']['grouptitle'];?></a>
                </li>
            </ul>
            <div class="action">
                <ul>
            <?php if($_G['group']['allowinvisible']) { ?>
                    <li>
                        <span id="loginstatus">
                            <a id="loginstatusid" href="member.php?mod=switchstatus" title="切换在线状态" onclick="ajaxget(this.href, 'loginstatus');return false;" class="xi2"></a>
                        </span>
                    </li>
            <?php } ?>

                    <li><a href="home.php?mod=spacecp">设置</a></li>

                    <li><a href="home.php?mod=space&amp;do=pm" id="pm_ntc">消息</a></li>

                    <li>
                        <a href="home.php?mod=space&amp;do=notice" id="myprompt" onmouseover="/*showMenu({'ctrlid':'myprompt'});*/">提醒<?php if($_G['member']['newprompt']) { ?>(<?php echo $_G['member']['newprompt'];?>)<?php } ?></a>
                        <span id="myprompt_check"></span>
                    </li>

                    <?php if(empty($_G['cookie']['ignore_notice']) && ($_G['member']['newpm'] || $_G['member']['newprompt_num']['follower'] || $_G['member']['newprompt_num']['follow'] || $_G['member']['newprompt'])) { ?>
                    <script language="javascript">delayShow($('myprompt'), function() {showMenu({'ctrlid':'myprompt','duration':3})});</script>
                    <?php } ?>

                    <?php if($_G['setting']['taskon'] && !empty($_G['cookie']['taskdoing_'.$_G['uid']])) { ?>
                    <li><a href="home.php?mod=task&amp;item=doing" id="task_ntc" class="new" style="background: none;padding-left: 0;">任务<?php if(0) { ?>进行中的任务<?php } ?></a></li>
                    <?php } ?>

                    <?php if(($_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle'] || $_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 6) || getstatus($_G['member']['allowadmincp'], 2) || getstatus($_G['member']['allowadmincp'], 3))) { ?>
                    <li><a href="portal.php?mod=portalcp"><?php if($_G['setting']['portalstatus'] ) { ?>门户管理<?php } else { ?>模块管理<?php } ?></a></li>
                    <?php } ?>

                    <?php if($_G['uid'] && $_G['group']['radminid'] > 1) { ?>
                    <li><a href="forum.php?mod=modcp&amp;fid=<?php echo $_G['fid'];?>" target="_blank"><?php echo $_G['setting']['navs']['2']['navname'];?>管理</a></li>
                    <?php } ?>

                    <?php if($_G['uid'] && $_G['adminid'] == 1 && $_G['setting']['cloud_status']) { ?>
                    <li><a href="admin.php?frames=yes&amp;action=cloud&amp;operation=applist" target="_blank">云平台</a></li>
                    <?php } ?>

                    <?php if($_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)) { ?>
                    <li><a href="admin.php" target="_blank">管理中心</a></li>
                    <?php } if($_G['uid'] && isset($_G['setting']['footernavs']['stat']) && $_G['setting']['footernavs']['stat']['available'] == 1 && $_G['group']['allowstatdata']) { ?>
<li><a href="misc.php?mod=stat">站点统计</a></li>
<?php } ?>

                    <?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra2'])) echo $_G['setting']['pluginhooks']['global_usernav_extra2'];?>
                    <li><a href="member.php?mod=logging&amp;action=logout&amp;formhash=<?php echo FORMHASH;?>">退出</a></li>
                </ul>
            </div>

        </div>

        <?php if(0) { ?>
        <p style="display: none">
            <strong class="vwmy<?php if($_G['setting']['connect']['allow'] && $_G['member']['conisbind']) { ?> qq<?php } ?>">
                <a href="home.php?mod=space&amp;uid=<?php echo $_G['uid'];?>" target="_blank" title="访问我的空间">
                    <?php echo $_G['member']['username'];?>
                </a>
            </strong>

            <?php if($_G['group']['allowinvisible']) { ?>
            <span id="loginstatus">
                <a id="loginstatusid" href="member.php?mod=switchstatus" title="切换在线状态" onclick="ajaxget(this.href, 'loginstatus');return false;" class="xi2"></a>
            </span>
            <?php } ?>

            <?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra1'])) echo $_G['setting']['pluginhooks']['global_usernav_extra1'];?>
            <span class="pipe">|</span><?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra4'])) echo $_G['setting']['pluginhooks']['global_usernav_extra4'];?><a href="home.php?mod=spacecp">设置</a>
            <span class="pipe">|</span><a href="home.php?mod=space&amp;do=pm" id="pm_ntc"<?php if($_G['member']['newpm']) { ?> class="new"<?php } ?>>消息</a>
            <span class="pipe">|</span><a href="home.php?mod=space&amp;do=notice" id="myprompt"<?php if($_G['member']['newprompt']) { ?> class="new"<?php } ?> onmouseover="showMenu({'ctrlid':'myprompt'});">提醒<?php if($_G['member']['newprompt']) { ?>(<?php echo $_G['member']['newprompt'];?>)<?php } ?></a><span id="myprompt_check"></span>
            <?php if(empty($_G['cookie']['ignore_notice']) && ($_G['member']['newpm'] || $_G['member']['newprompt_num']['follower'] || $_G['member']['newprompt_num']['follow'] || $_G['member']['newprompt'])) { ?><script language="javascript">delayShow($('myprompt'), function() {showMenu({'ctrlid':'myprompt','duration':3})});</script><?php } ?>
            <?php if($_G['setting']['taskon'] && !empty($_G['cookie']['taskdoing_'.$_G['uid']])) { ?><span class="pipe">|</span><a href="home.php?mod=task&amp;item=doing" id="task_ntc" class="new">进行中的任务</a><?php } ?>
            <?php if(($_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle'] || $_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 6) || getstatus($_G['member']['allowadmincp'], 2) || getstatus($_G['member']['allowadmincp'], 3))) { ?>
                <span class="pipe">|</span><a href="portal.php?mod=portalcp"><?php if($_G['setting']['portalstatus'] ) { ?>门户管理<?php } else { ?>模块管理<?php } ?></a>
            <?php } ?>

            <?php if($_G['uid'] && $_G['group']['radminid'] > 1) { ?>
                <span class="pipe">|</span><a href="forum.php?mod=modcp&amp;fid=<?php echo $_G['fid'];?>" target="_blank"><?php echo $_G['setting']['navs']['2']['navname'];?>管理</a>
            <?php } ?>

            <?php if($_G['uid'] && $_G['adminid'] == 1 && $_G['setting']['cloud_status']) { ?>
                <span class="pipe">|</span><a href="admin.php?frames=yes&amp;action=cloud&amp;operation=applist" target="_blank">云平台</a>
            <?php } ?>

            <?php if($_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)) { ?>
                <span class="pipe">|</span><a href="admin.php" target="_blank">管理中心</a>
            <?php } ?>

            <?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra2'])) echo $_G['setting']['pluginhooks']['global_usernav_extra2'];?>
            <span class="pipe">|</span><a href="member.php?mod=logging&amp;action=logout&amp;formhash=<?php echo FORMHASH;?>">退出</a>

        </p>

        <p style="display: none">
            <?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra3'])) echo $_G['setting']['pluginhooks']['global_usernav_extra3'];?>
            <a href="home.php?mod=spacecp&amp;ac=credit&amp;showcredit=1" id="extcreditmenu"<?php if(!$_G['setting']['bbclosed']) { ?> onmouseover="delayShow(this, showCreditmenu);" class="showmenu"<?php } ?>>积分: <?php echo $_G['member']['credits'];?></a>
            <span class="pipe">|</span><a href="home.php?mod=spacecp&amp;ac=usergroup" id="g_upmine" class="showmenu" onmouseover="delayShow(this, showUpgradeinfo)">用户组: <?php echo $_G['group']['grouptitle'];?></a>
        </p>
        <?php } ?>

    </div>
    <?php } elseif(0 && !empty($_G['cookie']['loginuser'])) { ?>
    <p>
        <strong>
            <a id="loginuser" class="noborder"><?php echo dhtmlspecialchars($_G['cookie']['loginuser']); ?></a>
        </strong>
        <span class="pipe">|</span><a href="member.php?mod=logging&amp;action=login" onclick="showWindow('login', this.href)">激活</a>
        <span class="pipe">|</span><a href="member.php?mod=logging&amp;action=logout&amp;formhash=<?php echo FORMHASH;?>">退出</a>
    </p>
    <?php } elseif(0 && !$_G['connectguest']) { ?>
        <?php include template('member/login_simple'); ?>    <?php } else { ?>
    <div id="um">
        <?php if(0) { ?>
            <div class="avt y">
                <?php echo avatar(0,small);?>            </div>

            <p>
                <strong class="vwmy qq"><?php echo $_G['member']['username'];?></strong>
                <?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra1'])) echo $_G['setting']['pluginhooks']['global_usernav_extra1'];?>
                <span class="pipe">|</span><a href="member.php?mod=logging&amp;action=logout&amp;formhash=<?php echo FORMHASH;?>">退出</a>
            </p>
            <p>
                <a href="home.php?mod=spacecp&amp;ac=credit&amp;showcredit=1">积分: 0</a>
                <span class="pipe">|</span>用户组: <?php echo $_G['group']['grouptitle'];?>
            </p>
        <?php } ?>

        <p class="login">
            <a href="http://www.51art.com/usersLogin/call">登录</a>
            <span class="pipe">|</span>
            <a href="http://www.51art.com/reg">注册</a>
        </p>
    </div>
<?php } ?>
</div>
